package org.subject.entity;

import java.util.Date;

public class Article {
    private Long articleId;

    private String articleTitle;

    private Date articleCreateTime;

    private String articleRemark;

    private String addName;

    private Long userId;

    private String articleContent;

    public Article(Long articleId, String articleTitle, Date articleCreateTime, String articleRemark, String addName, Long userId, String articleContent) {
        this.articleId = articleId;
        this.articleTitle = articleTitle;
        this.articleCreateTime = articleCreateTime;
        this.articleRemark = articleRemark;
        this.addName = addName;
        this.userId = userId;
        this.articleContent = articleContent;
    }

    public Article() {
        super();
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle == null ? null : articleTitle.trim();
    }

    public Date getArticleCreateTime() {
        return articleCreateTime;
    }

    public void setArticleCreateTime(Date articleCreateTime) {
        this.articleCreateTime = articleCreateTime;
    }

    public String getArticleRemark() {
        return articleRemark;
    }

    public void setArticleRemark(String articleRemark) {
        this.articleRemark = articleRemark == null ? null : articleRemark.trim();
    }

    public String getAddName() {
        return addName;
    }

    public void setAddName(String addName) {
        this.addName = addName == null ? null : addName.trim();
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent == null ? null : articleContent.trim();
    }

    @Override
    public String toString() {
        return "Article{" +
                "articleId=" + articleId +
                ", articleTitle='" + articleTitle + '\'' +
                ", articleCreateTime=" + articleCreateTime +
                ", articleRemark='" + articleRemark + '\'' +
                ", addName='" + addName + '\'' +
                ", userId=" + userId +
                ", articleContent='" + articleContent + '\'' +
                '}';
    }
}